package com.weifangfirecontrolformal.weifangfirecontrolformal.web.service.check.businessseat;

import cn.hutool.json.JSONObject;
import com.weifangfirecontrolformal.weifangfirecontrolformal.common.base.BaseService;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.model.RespEntity;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.utils.requestutil.HttpRequestUtil;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class BusinessSeatService extends BaseService {

	private static final Logger logger = LoggerFactory.getLogger(BusinessSeatService.class);


	/**
	 * 分区位置列表
	 * @param
	 * @return
	 */
	public RespEntity businessSeatListPage(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","businessSeatListPage","businessSeat");
	}

	/**
	 * 分区位置详情
	 * @param
	 * @return
	 */
	public RespEntity businessSeatDetail(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","businessSeatDetail","businessSeat");
	}

	/**
	 * 分区位置新增
	 * @param
	 * @return
	 */
	public RespEntity businessSeatAdd(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","businessSeatAdd","businessSeat");
	}

	/**
	 * 分区位置修改
	 * @param
	 * @return
	 */
	public RespEntity businessSeatUpdate(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","businessSeatUpdate","businessSeat");
	}

	/**
	 * 分区位置删除
	 * @param
	 * @return
	 */
	public RespEntity businessSeatDelete(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","businessSeatDelete","businessSeat");
	}

}
